API Documentation
Static Public Member Functions | List of all members
nkAstraeus::lua::nkGraphicsWrap::NodeWrapper Class Referencefinal

Wraps a nkGraphics::Node and offers functions for use in scripting. More...

Static Public Member Functions

static void updateEnvironment (nkScripts::Environment *env)
 
static nkScripts::OutputValue addChildNode (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue insertIntoTreeFrom (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue detachFromTree (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue translateAbsolute (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue translateRelative (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue setPositionAbsolute (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue setPositionRelative (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue getPositionAbsolute (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue getPositionRelative (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue rotateAbsolute (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue rotateRelative (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue setOrientationAbsolute (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue setOrientationRelative (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue getOrientationAbsolute (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue getOrientationRelative (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue applyScale (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue setScaleAbsolute (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue setScaleRelative (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue getScaleAbsolute (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue getScaleRelative (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue addEntityToTrack (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue stopEntityTracking (const nkScripts::DataStack &stack)
 

Detailed Description

Wraps a nkGraphics::Node and offers functions for use in scripting.

Member Function Documentation

◆ updateEnvironment()

static void nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::updateEnvironment ( nkScripts::Environment env)
static

Updates a given environment and set it up to use all functions wrapped by this wrapper.

Parameters
envThe environment to set up.

◆ addChildNode()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::addChildNode ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::addChildNode().

n:addChildNode(c) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ insertIntoTreeFrom()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::insertIntoTreeFrom ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::insertIntoTreeFrom().

n:insertIntoTreeFrom(p) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ detachFromTree()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::detachFromTree ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::detachFromTree().

Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ translateAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::translateAbsolute ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::translateAbsolute().

n:translateAbsolute(v) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ translateRelative()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::translateRelative ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::translateRelative().

n:translateRelative(v) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ setPositionAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::setPositionAbsolute ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::setPositionAbsolute().

n:setPositionAbsolute(v) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ setPositionRelative()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::setPositionRelative ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::setPositionRelative().

n:setPositionRelative(v) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ getPositionAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::getPositionAbsolute ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::getPositionAbsolute().

local v = n:getPositionAbsolute() ;
Parameters
stackThe parameter stack.
Returns
The attribute value, as a nkGraphics::Node.

◆ getPositionRelative()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::getPositionRelative ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::getPositionRelative().

local v = n:getPositionRelative() ;
Parameters
stackThe parameter stack.
Returns
The attribute value, as a nkGraphics::Node.

◆ rotateAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::rotateAbsolute ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::rotateAbsolute().

n:rotateAbsolute(q) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ rotateRelative()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::rotateRelative ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::rotateRelative().

n:rotateRelative(q) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ setOrientationAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::setOrientationAbsolute ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::setOrientationAbsolute().

n:setOrientationAbsolute(q) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ setOrientationRelative()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::setOrientationRelative ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::setOrientationRelative().

n:setOrientationRelative(q) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ getOrientationAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::getOrientationAbsolute ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::getOrientationAbsolute().

local q = n:getOrientationAbsolute() ;
Parameters
stackThe parameter stack.
Returns
The attribute value, as a nkGraphics::Node.

◆ getOrientationRelative()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::getOrientationRelative ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::getOrientationRelative().

local q = n:getOrientationRelative() ;
Parameters
stackThe parameter stack.
Returns
The attribute value, as a nkGraphics::Node.

◆ applyScale()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::applyScale ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::applyScale().

n:applyScale(s) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ setScaleAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::setScaleAbsolute ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::setScaleAbsolute().

n:setScaleAbsolute(s) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ setScaleRelative()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::setScaleRelative ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::setScaleRelative().

n:setScaleRelative(s) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ getScaleAbsolute()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::getScaleAbsolute ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::getScaleAbsolute().

local s = n:getScaleAbsolute() ;
Parameters
stackThe parameter stack.
Returns
The attribute value, as a nkGraphics::Node.

◆ getScaleRelative()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::getScaleRelative ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::getScaleRelative().

local s = n:getScaleRelative() ;
Parameters
stackThe parameter stack.
Returns
The attribute value, as a nkGraphics::Node.

◆ addEntityToTrack()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::addEntityToTrack ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::addEntityToTrack().

n:addEntityToTrack(e) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ stopEntityTracking()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::NodeWrapper::stopEntityTracking ( const nkScripts::DataStack stack)
static

Wrapper function for nkGraphics::Node::stopEntityTracking().

n:stopEntityTracking(e) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

The documentation for this class was generated from the following file: